<?php


class EmsGallerySectionTable extends Doctrine_Table
{
    public function getSupportedContentTypes()
    {
        $gallerytype = Doctrine::getTable('EmsSectionType')->findOneByType('Gallery');

        return $gallerytype->getAdmits();
    }

    public function getContentTypeOptions()
    {
        $options  = array();

        foreach ($this->getSupportedContentTypes() as $type) {
            $options[$type->getId()] = $type;
        }

        return $options;
    }

    public static function getInstance()
    {
        return Doctrine_Core::getTable('EmsGallerySection');
    }
}